<button
  (click)="parent.startTask()"
  *ngIf="!task().isDone && !isCurrent() && !task().subTasks?.length"
  title="{{T.F.TASK.CMP.TRACK_TIME|translate}} {{kb.togglePlay?'['+kb.togglePlay+']':''}}"
  class="ico-btn start-task-btn"
  color=""
  mat-icon-button
>
  <mat-icon
    class="play-icon"
    svgIcon="play"
  ></mat-icon>
</button>

<button
  (click)="parent.pauseTask()"
  *ngIf="!task().isDone && isCurrent() && !task().subTasks?.length"
  title="{{T.F.TASK.CMP.TRACK_TIME_STOP|translate}} {{kb.togglePlay?'['+kb.togglePlay+']':''}}"
  class="ico-btn"
  color="accent"
  mat-icon-button
>
  <mat-icon>pause</mat-icon>
</button>

<button
  (click)="parent.addToMyDay()"
  *ngIf="isShowAddToToday()"
  title="{{T.F.TASK.CMP.ADD_TO_MY_DAY|translate}} {{kb.moveToTodaysTasks?'['+kb.moveToTodaysTasks+']':''}}"
  class="ico-btn"
  color=""
  mat-icon-button
>
  <mat-icon>wb_sunny</mat-icon>
</button>

<button
  (click)="parent.removeFromMyDay()"
  *ngIf="isShowRemoveFromToday()"
  [title]="T.F.TASK.CMP.REMOVE_FROM_MY_DAY|translate"
  class="ico-btn"
  color=""
  mat-icon-button
>
  <mat-icon svgIcon="remove_today"></mat-icon>
</button>

<button
  *ngIf="!task().isDone"
  (click)="parent.toggleTaskDone()"
  title="{{T.F.TASK.CMP.TOGGLE_DONE|translate}} {{kb.taskToggleDone?'['+kb.taskToggleDone+']':''}}"
  class="ico-btn task-done-btn"
  color=""
  mat-icon-button
>
  <mat-icon>check</mat-icon>
</button>

<button
  (click)="parent.toggleShowDetailPanel()"
  *ngIf="!task().notes && (!task().issueId||task().issueType==='CALENDAR') && !isSelected()"
  title="{{T.F.TASK.CMP.TOGGLE_DETAIL_PANEL|translate}} {{kb.taskToggleDetailPanelOpen?'['+kb.taskToggleDetailPanelOpen+']':''}}"
  class="ico-btn show-additional-info-btn"
  color=""
  mat-icon-button
>
  <mat-icon *ngIf="!task().issueWasUpdated">&#xe949;</mat-icon>
  <!--            <mat-icon *ngIf="!task().issueWasUpdated">toc</mat-icon>-->
  <!--            <mat-icon *ngIf="!task().issueWasUpdated">chevron_right</mat-icon>-->
  <mat-icon
    *ngIf="task().issueWasUpdated"
    color="accent"
    >update
  </mat-icon>
</button>
